FROM java:8
RUN echo "Asia/shanghai" > /etc/timezone;
VOLUME /data
VOLUME /tmp
ADD eureka-0.0.1-SNAPSHOT.jar /opt/eureka/
EXPOSE 18761
WORKDIR /opt/eureka/
CMD ["java", "-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08","-Xms128m", "-Xmx512m", "-jar", "eureka-0.0.1-SNAPSHOT.jar"]

